package com.example.websocket.controller;

import com.example.websocket.util.QueueHelper;
import com.example.websocket.util.TTHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private TTHelper ttHelper;
    @Autowired
    private QueueHelper<String> queueHelper;

    @RequestMapping("")
    public String test(){

        String s = queueHelper.get();
        return s;
    }
}
